<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="email=no">
    <title>共享现金客服系统</title>
    <meta name="keywords" content="共享现金客服系统">
    <meta name="description" content="共享现金客服系统">
        <link rel="stylesheet" type="text/css" href="/Public/admin/css/gxxj/normalize.css">
    <link rel="stylesheet" type="text/css" href="/Public/admin/css/gxxj/public_O.css">
    <link rel="stylesheet" type="text/css" href="/Public/admin/css/gxxj/workorder.css">
    <style>
        .workorderBox {
            background: #fff;
             min-height: 200px;
            font-size: 14px;
        }
    </style>
</head>
<body>

<div class="workorderBox">
    <div class="addOrderBox">
        <form method="post" onsubmit="return false">
            <ul>
                <li>
                    <span class="fl">-贷后选择：</span>
                    <select id="merchant" class="fl selectBox">
                        <volist name="merchant" id="vo">
                            <option value=" <{$vo.id}>"> <{$vo.name}></option>
                        </volist>
                    </select>
                    <div class="clear"></div>
                </li>
            </ul>
            <input type="submit" onclick="add()" class="submit_order" value="确 定" style="width: 170px;">
            <!--<input type="submit" onclick="add()" class="submit_order" value="确 定">-->
        </form>
    </div>
</div>

<!-- 全局js -->
<script src="/Public/admin/js/jquery.min.js?v=2.1.4"></script>
<script src="/Public/admin/js/layer/layer.js"></script>
<script src="/Public/admin/js/layui/layui.js"></script>
<script src="/Public/admin/js/ajaxfileupload.js"></script>
<script>

    var urllist='';

    function add() {
        var index = layer.load(1, {
            shade: [0.1, '#fff'] //0.1透明度的白色背景
        });

        var url = "<{$SRVER_NAME}>/admin.php/Overdue/Overdue_apply";
        var tourl = "<{$SRVER_NAME}>/admin.php/Overdue/OverdueList";
       var overdue="<{$overId}>";
        var merchant=$("#merchant").val();
        console.log("ddddd11",merchant+"=="+overdue);
            $.post(url, {id:merchant,overdue:overdue}, function (data) {
                console.log("ddddd",data);
                if (data.code == "1001") {
                    layer.alert('申请成功', {title: '提示框', icon: 1}, function () {
                        window.location.href = tourl;
                        layer.close(index);
                    });
                }
                else {
                    layer.alert(data.result, {title: '提示框', icon: 1});
                    layer.close(index);
                }
            });

    }


</script>

</body>
</html>